import 'package:json_annotation/json_annotation.dart';

part 'integral_exchange_entity.g.dart';


@JsonSerializable()
class IntegralExchangeEntity extends Object {

  @JsonKey(name: 'total')
  int total;

  @JsonKey(name: 'pages')
  int pages;

  @JsonKey(name: 'limit')
  int limit;

  @JsonKey(name: 'page')
  int page;

  @JsonKey(name: 'list')
  List<ListData> list;

  IntegralExchangeEntity(this.total,this.pages,this.limit,this.page,this.list,);

  factory IntegralExchangeEntity.fromJson(Map<String, dynamic> srcJson) => _$IntegralExchangeEntityFromJson(srcJson);

  Map<String, dynamic> toJson() => _$IntegralExchangeEntityToJson(this);

}


@JsonSerializable()
class ListData extends Object {

  @JsonKey(name: 'fid')
  int fid;

  @JsonKey(name: 'fuserId')
  int fuserId;

  @JsonKey(name: 'funitname')
  String funitname;

  @JsonKey(name: 'fintegral')
  int fintegral;

  @JsonKey(name: 'fname')
  String fname;

  @JsonKey(name: 'fnum')
  int fnum;

  @JsonKey(name: 'fcreatetime')
  String fcreatetime;

  @JsonKey(name: 'ftotalIntegral')
  int ftotalIntegral;

  @JsonKey(name: 'fadminId')
  int fadminId;

  @JsonKey(name: 'fmobile')
  String fmobile;

  @JsonKey(name: 'fisdel')
  int fisdel;

  @JsonKey(name: 'famount')
  int famount;

  @JsonKey(name: 'ftotalAmount')
  int ftotalAmount;
  @JsonKey(name: 'frecoveryTypeId')
  int frecoveryTypeId;

  ListData(this.fid,
      this.fuserId,
      this.funitname,
      this.fintegral,
      this.fname,
      this.fnum,
      this.fcreatetime,
      this.ftotalIntegral,
      this.fadminId,
      this.fmobile,
      this.fisdel,
      this.famount,
      this.ftotalAmount,
      this.frecoveryTypeId,);

  factory ListData.fromJson(Map<String, dynamic> srcJson) => _$ListDataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ListDataToJson(this);

}


